/**
 * @Auto generation code
 * Service Stock Controller
 */
import request from '../common/request/request.js'

/**
 * 
 * path, params, loading
 * 获取默认库存配置列表 - GET
 */
export const defaultList = async ({// query params
		date   // 服务日期  
	
}, loading) => {
	return await request.get('/service/stock/v2/custom', {
		 date, 
	}, loading)
}


 console.log('存在put方法，未兼容/service/stock/v2/custom，后端需要更正');
/**
 * 
 * path, params, loading
 * 获取周期配置一周服务日期总数 - GET
 */
export const serviceTime = async (loading) => {
	return await request.get('/service/stock/v2/custom/sum', {
		
	}, loading)
}


 console.log('存在put方法，未兼容/service/stock/v2/recent，后端需要更正');
/**
 * 
 * path, params, loading
 * 获取固定日期配置 - GET
 */
export const customList = async (, {// path params
		date   // 开始日期  
	
}, loading) => {
	return await request.get('/service/stock/v2/recent/${date}', {
		
	}, loading)
}


/**
 * 
 * path, params, loading
 * 获取定期配置列表 - GET
 */
export const homeList = async (, {// path params
		date ,   // 服务日期  
		length   // 列表长度  
	
}, loading) => {
	return await request.get('/service/stock/v2/recent/${date}/list/${length}', {
		
	}, loading)
}

